home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / AppleEvents / Events / ConstAEAttribute.h < prev    next >
Text File  |  2000-06-23  |  777b  |  49 lines

  1. // ConstAEAttribute.h
  2.  
  3. #ifndef ConstAEAttribute_h
  4. #define ConstAEAttribute_h
  5.  
  6. #ifndef AEType_h
  7. #include "AEType.h"
  8. #endif
  9. #ifndef AEKey_h
  10. #include "AEKey.h"
  11. #endif
  12. #ifndef Data_h
  13. #include "Data.h"
  14. #endif
  15. #ifndef AEAtomicType_h
  16. #include "AEAtomicType.h"
  17. #endif
  18.  
  19. class AEEvent;
  20. class Buffer;
  21.  
  22. class ConstAEAttribute
  23.   {
  24.     private:
  25.         const AEEvent& event;
  26.         AEKey key;
  27.     
  28.     public:
  29.         ConstAEAttribute( const AEEvent& theEvent, AEKey theKey )
  30.           : event( theEvent ),
  31.              key( theKey )
  32.           {}
  33.         
  34.         const AEEvent& Event() const        { return event; }
  35.         AEKey Key() const                        { return key; }
  36.         
  37.         bool Exists() const;
  38.         
  39.         uint32 Length() const;
  40.         AEType Type() const;
  41.         
  42.         void operator>>( Data ) const;
  43.         void operator>>( Buffer& ) const;
  44.  
  45.         void Get( AEType, Data ) const;
  46.   };
  47.  
  48. #endif
  49.